package com.demo.event;

import org.springframework.context.ApplicationEvent;

/**
 * 自定义事件
 */
public class MyUserEvent extends ApplicationEvent {

    private User user;
    public MyUserEvent(User user) {
        super(user);
        this.user=user;
    }

    public User getUser() {
        return user;
    }
}
